import request from '@/utils/request'

// 查询审核列表
export function listAuditTask(query) {
	return request({
		url: '/audit/list',
		method: 'get',  
		params: query
	})
}

// 查询任务和包工信息
export function getTaskAndAudit(taskId){
	return request({
		url: '/audit/getTaskAndAudit/' + taskId,
		method: 'get'
	})
}

/**
 * 审批通过
 */
export function pass(data) {
	return request({
		url: '/audit/pass?ids=' + data,
		method: 'put'
	})
}

/**
 * 审批拒绝
 */
export function refuse(data) {
	return request({
		url: '/audit/refuse?ids=' + data,
		method: 'put'
	})
}